package javafx.demo;

import java.util.Queue;


import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ToggleButton;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;

public class JavaFXTest1 extends Application{
	
	
	public static void main(String[] args) {
		launch(args);
	}

	public void start(Stage stage) throws Exception {
		Button button = new Button("跳转");
		Button button2 = new Button("跳转");
		Button button3 = new Button("跳转");
		Button button4 = new Button("跳转");
		
//		ToggleButton b1 = new ToggleButton("开关按钮1");
//		ToggleButton b2 = new ToggleButton("开关按钮1");
//		ToggleButton b3 = new ToggleButton("开关按钮1");
//		SegmentedButton sb = new SegmentedButton();
//		sb.getButtons().addAll(new ToggleButton[]{b1,b2,b3});
		
		HBox box = new HBox(button,button2,button3,button4);
		box.setPadding(new Insets(20));
		box.setSpacing(10);
		
		Scene scene = new Scene(box,400,200);
		stage.setScene(scene);
		
//		setUserAgentStylesheet(STYLESHEET_CASPIAN);
		stage.show();
	}
}
